package com.heima.mapper;

/**
 * @ClassName WmNewsMapper
 * @Description TODO
 * @Author @O_o
 * @Date 2023/8/20 11:37
 * @Version 1.0
 */

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.wemedia.dto.NewsAuthDTO;
import com.heima.model.wemedia.pojos.WmNews;
import com.heima.model.wemedia.vo.WmNewsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface WmNewsMapper extends BaseMapper<WmNews> {
    List<WmNewsVO> findListAndPage(@Param("dto") NewsAuthDTO dto);
    long findListCount(@Param("dto") NewsAuthDTO dto);
}
